package com.zzc.legou.service.item.controller;

import com.zzc.legou.core.controller.BaseController;
import com.zzc.legou.item.entity.Brand;

import com.zzc.legou.log.aop.annotation.LogAnno;
import com.zzc.legou.service.item.service.IBrandService;
import io.swagger.annotations.ApiOperation;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/brand")

public class BrandController extends BaseController<IBrandService, Brand> {

    @ApiOperation(value = "根据ids查询", notes = "根据ids查询")
    @GetMapping("/list-by-ids")
    public List<Brand> selectBrandByIds(@RequestParam("ids") List<Long> ids) {
        return service.selectBrandByIds(ids);
    }
}
